// 数据中心->教务数据
import request from "@/utils/request";

// 核心数据
export function countAcademicDataAPI(data) {
  return request({
    url: "/tCourseOrder/countAcademicData",
    method: "post",
    data: data,
  });
}

// 数据趋势
export function dataTrendsAPI(data) {
  return request({
    url: "/tCourseOrder/dataTrends",
    method: "get",
    params: data,
  });
}

// 上课老师
export function dataTrendsTeacherAPI(data) {
  return request({
    url: "/tCourseOrder/dataTrendsTeacher",
    method: "get",
    params: data,
  });
}

// 班级列表
export function dataTrendsClassAPI(data) {
  return request({
    url: "/tCourseOrder/dataTrendsClass",
    method: "get",
    params: data,
  });
}

// 课程报表
export function dataTrendCourseAPI(data) {
  return request({
    url: "/tCourseOrder/dataTrendCourse",
    method: "get",
    params: data,
  });
}

// 在读学员明细
export function dataTrendStudentAPI(data) {
  return request({
    url: "/tCourseOrder/dataTrendStudent",
    method: "get",
    params: data,
  });
}

// 导出
export function exportDataTrendAPI(data) {
  return request({
    url: "/tCourseOrder/exportdataTrend",
    method: "post",
    data: data,
    responseType: "blob",
    headers: { "Content-Type": "application/json; application/octet-stream" },
  });
}

// echarts统计
export function dataTrendsEChartAPI(data) {
  return request({
    url: "/tCourseOrder/dataTrendsEChart",
    method: "post",
    data: data,
  });
}
